let app = getApp()
Component({
    properties: {
      },
      data:{
        loginShow:false,
        listStyle:"style1"
      },
    lifetimes: {
        attached: function () {
            var that=this
            wx.request({
              url: app.globalData.siteroot,
              data: {
                do:'LivePlayer_getLivePlayerRoomList'
              },
              success: function(res) {
                  that.setData({
                    list:res.data.data
                  })
              }
            })
         }
      },
    methods: {
      sharefriend:function(e){
        var sharedata=[];
        sharedata['title']=e.detail.name;
        sharedata['desc']=e.detail.start_time;
        sharedata['cover']=e.detail.share_img;
        this.triggerEvent('sharefriend',sharedata);
      }
    }
});
